<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_弹性布局入门</title>
    <style>
        .container {
            width: 500px;
            background-color: lightseagreen;
            display: flex;
            flex-direction: column;/*主轴的模式：列模式 竖着排*/
            flex-direction: row-reverse;/*主轴的模式：反转行模式 3 2 1 */
            flex-direction: column-reverse;/*主轴的模式：反转列模式 3 2 1 */
            flex-direction: row;/*主轴的模式：行模式 横着排*/

            flex-wrap: nowrap;
            flex-wrap: wrap;
        }
        .item {
            background-color: lightgreen;
            border: 3px solid black;
            width: 100px;
            height: 100px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4</div>
        <div class="item">5</div>
        <div class="item">6</div>
        <div class="item">7</div>
    </div>
</body>
</html>